﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_PRODUCT.Product.DAO;

namespace ERP_RORZE_PRODUCT.Product.XLBM
{
    public partial class ctrlKHTong : DevExpress.XtraEditors.XtraUserControl
    {
        ClsXLBM clsXLBM = new ClsXLBM();
        DataTable dt;

        public ctrlKHTong()
        {
            InitializeComponent();
        }

        void Reload(object sender, EventArgs e)
        {
            dt = clsXLBM.GetKHT();
            gridControl1.DataSource = dt;
            gridView1.BestFitColumns();
        }
        private void ctrlKHTong_Load(object sender, EventArgs e)
        {
            Reload(sender, e);
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            Reload(sender, e);
        }

        private void btnReload_Click(object sender, EventArgs e)
        {
            Reload(sender, e);
        }
    }
}
